//
//  WPDiseaseTypeFirstCVC.m
//  wobingwoyi
//
//  Created by WGP on 16/9/5.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPDiseaseTypeFirstCVC.h"

@implementation WPDiseaseTypeFirstCVC

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
            //        通知阅读量
            NSString *url = @"record/readRecord.do";
            WPMRModel *model = self.models[indexPath.item];
            NSDictionary *dict = @{@"recordId":@(model.id)};

            [[WPNetWorkManager sharedNetWorkManager] POST:url parameters:dict progress:^(NSProgress * _Nonnull uploadProgress) {

            } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {

//                NSDictionary *responseDict = (NSDictionary *)responseObject;
//                NSLog(@"%@",responseDict[@"result"]);

            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {

            }];

            if ([self.delegate respondsToSelector:@selector(indivalCaseCellDidClick:model:)])
            {
                [self.delegate indivalCaseCellDidClick:self model:self.models[indexPath.item]];
            }
}

-(void)dealloc
{
//    NSLog(@"疾病类型第一个cell死了");
}

@end
